BuffEffect29 = BaseBuffEffect:new();
BuffEffect29.__index = BuffEffect29;

function BuffEffect29:new()
    local object = {};
    setmetatable(object, BuffEffect29);
    return object;
end

function BuffEffect29:action(fight,buff,...)
    local target = buff.target;
    local skill = select('2',...);
    local skillBean = skill.skill.skillBean;
    local values = decodeJsonStrToTabel(buff.buffBean.f_Value);
    if skillBean.f_IfATK == EnumConst.SkillTypeEnum.SKILL then
        target.energy = target.energy + values[1];
        fightLog("[EFFECT]Fighter "..buff.target.fighterId.." Buff"..buff.modelId.." 触发释放技能额外增加SP效果，增加SP："..values[1]);
    end
    return EnumConst.IBuffEffect.SUCCESS;
end
